<%@ page contentType="text/html; charset=UTF-8"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
    <title>查询</title>  
    <meta http-equiv="pragma" content="no-cache" />  
    <meta http-equiv="cache-control" content="no-cache" />  
    <meta http-equiv="expires" content="0" />  
    <link type="text/css" href="<%=path %>/common/jquery/easyui/css/default/easyui.css"  rel="stylesheet" charset='UTF-8'>  
    <link type="text/css" href="<%=path %>/common/jquery/easyui/css/icon.css" rel="stylesheet" charset='UTF-8'>  
    <script type="text/javascript">  
    var basePath="<%=path %>";  
    </script>  
    <script language="javascript" src="<%=path %>/common/jquery/core/jquery-1.11.1.js"></script>  
    <script language="javascript" src="<%=path %>/common/jquery/easyui/js/jquery.easyui.min.js"></script>  
    <script language="javascript" src="<%=path %>/manager/js/userList.js"></script>  
    <script type="text/javascript">
    function deleteGoods(){
    	var selectData = $('#userInfo').datagrid("getSelected"); 
    	if(selectData!=null){
    		var flag = confirm("确定删除么？");
        	if(flag){        		
        		window.open("<%=path%>/user/deleteUser.do?id="+selectData.id,"_self");
        	}    	
    	}else {
    		alert("请选择数据");
    	}
    	
    }    
    function updateGoods(){
    	     //alert("修改");
    	     var selectData = $('#userInfo').datagrid("getSelected");
    	     if(selectData!=null){
    	    		var flag = confirm("确定修改么？");
    	        	if(flag){        		
    	        		 window.open("<%=path%>/user/getUser.do?id="+selectData.id,"_self");
    	        	}    	
    	    	}else {
    	    		alert("请选择数据");
    	    	}
    	    
    }
</script>
    
</head>  
<body class="body">  
<table width="98%">  
    <tr>  
        <td>  
            <table id="userInfo" title="">  
            </table>    
        </td>  
    </tr>  
</table>  
  <div style="padding:5px 0;">
		<a href="<%=path %>/manager/user/userAdd.jsp?position=manager" class="easyui-linkbutton" data-options="iconCls:'icon-add'">增加用户</a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="javascript:deleteGoods()">删除</a>
		<!-- <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">Save</a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cut',disabled:true">Cut</a> -->
		<a href="#" class="easyui-linkbutton" onclick="javascript:updateGoods()">修改</a>
	</div>
</body>  
</html>  